﻿using Max.PH4.Shoppgin.Admin.Domain;
using Max.PH4.Shoppgin.Admin.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.IService
{
    public interface ISKUService
    {
        void AddSKU(ProductInputDto dto);
        int Update(SKUEntity entity);
        int Update(List<SKUEntity> entities);
        int Delete(SKUEntity entity);
        int Delete(object id);

        List<SKUEntity> Query();
        IQueryable<SKUEntity> Query(string name);
        IQueryable<SKUEntity> Query(string name, int pageIndex, int pageSize, out int total);
    }
}
